import axios from "axios";

const newAxios = axios.create({
    baseURL:import.meta.env.VITE_APP_BASE_API || "",
    timeout:5000
})

//请求拦截器
newAxios.interceptors.request.use((request)=>{
    //Authentication接口文档决定
    request.headers.Authentication = localStorage.token
    return request
})

export default newAxios